package fr.enseirb.mycub.structures;

import java.util.ArrayList;
import java.util.Calendar;

public class GroupeHoraire {
	
	static int mois;
	static int jour;
	static int jourDeLaSemaine;
	static int heure;
	static int minute;
	static int seconde;
	private ArrayList<Horaire> horaires = new ArrayList<Horaire>();
	int id;
	private Station station;
	
	public GroupeHoraire(int id){
		this.id = id;
	}
	
	public static void setCurrentDay(){
		Calendar c = Calendar.getInstance();
		jourDeLaSemaine = c.get(Calendar.DAY_OF_WEEK);
		jour = c.get(Calendar.DAY_OF_MONTH);
		mois = c.get(Calendar.MONTH);
		heure = c.get(Calendar.HOUR_OF_DAY);
		minute = c.get(Calendar.MINUTE);
		seconde = c.get(Calendar.SECOND);
		//Log.i("setCurrentDay", "jour de la semaine : "+jourDeLaSemaine+"( "+jour+"/"+mois+" ) :  "+heure+":"+minute+":"+seconde);
	}
	
	public static String getTime(){
		return ""+heure+":"+minute+":"+seconde;
	}

	public Station getStation() {
		return station;
	}

	public void setStation(Station station) {
		this.station = station;
	}

	public ArrayList<Horaire> getHoraires() {
		return horaires;
	}

	public void setHoraires(ArrayList<Horaire> horaires) {
		this.horaires = horaires;
	}
}
